package cn.glow.readingcloud.book.feign.client;


import cn.glow.readingcloud.book.feign.fallback.BookClientFallBack;
import cn.glow.readingcloud.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import  cn.glow.readingcloud.common.pojo.Book;

/**
 * @Author Glow
 * @Date 2023-04-16 14:24:23
 * @Description 图书管理服务的feign调用接口
 * @Version 1.0
 */
@FeignClient(contextId = "book", name = "light-reading-cloud-book",fallbackFactory = BookClientFallBack.class)
public interface BookClient {

    @GetMapping("/book/getBookById")
    Result<Book> getBookById(@RequestParam("bookId") String bookId);

}
